


import os
import shelve

from PyQt4.QtGui import QDesktopServices

from dexen.libs import appdirs
from dexen.system.client.ui import resource # This import is needed to load icons

APPDATA_DIR = appdirs.user_data_dir("Dexen", "Nus")

if not os.path.exists(APPDATA_DIR):
    os.makedirs(APPDATA_DIR)

SETTINGS_PATH = os.path.join(APPDATA_DIR, "settings.dexen")
settings_db = shelve.open(SETTINGS_PATH)
CLIENT_DB = os.path.join(APPDATA_DIR, "client.db")        
